public class Data {
    int year;
    int month;
    int day;


    public void setTime(int year, int month, int day){
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void printData(){
        System.out.println(this.year + "/" + this.month + "/" + this.day);
    }

    public void func(){
        this.printData();
    }


    public static void main(String[] args) {
        Data data1 = new Data();
        data1.setTime(2025,3,6);
        // data1.printData();
        data1.func();

        Data data2 = new Data();
        data2.setTime(2024,3,6);
        data2.printData();
    }
}
